{% extends "agm1.0/base.html" %}
{%- block body %}
        <div id='wx_logo' style='display:none;'>
            <img src='/static/images/wx_logo.jpg'/>
        </div>    
        <section id="products" data-role="page" data-add-back-btn="true">
            <header data-role="header" data-position="fixed">
                <h3>{{ _dt(title) }}</h3>
            </header>
            <div class="head_pic"><img src="/static/images/tu2.jpg"></div>
            <div data-role="content">
                <ul data-role="listview" data-divider-theme="c" class="ui-icon-alt">
                    {% for item in items %}
                    <li><a href="{{url_for('.product', pid=item.id)}}"><img src="{{bigtosmall(item.get('img'))}}"{% if item.get('imgfile') %} onerror="this.src='{{item.get('imgfile').get_thumbnail_url('200', '139')}}'"{% endif %}/>{{item.get('name')}}{% if item.get('year') == 2020 %}<div class="ui-li-aside"><img src="/static/images/new.gif"></div>{% endif %}</a></li>{% endfor %}
                </ul>
            </div>
            <footer data-role="footer" data-position="fixed" id="footer"><h5><small>©2020 {{_t('AGM 英宝玩具', 'Top-Racer')}}</small></h5></footer>
        </section>      
    {% endblock %}